from WebDriver.IWebDriver import IWebDriver
from selenium import webdriver
import os


class ChromeWebDriver(IWebDriver):

    def __init__(self):
        chromedriver = "C:/Program Files (x86)/Google/Chrome/Application/chromedriver.exe"
        os.environ["webdriver.chrome.driver"] = chromedriver
        self.browser = webdriver.Chrome(chromedriver)

    def loadUrl(self, url):
        self.browser.get(url)

    def getBrowser(self):
        return self.browser



